.class Lcom/estrongs/dlna/core/b$a;
.super Ljava/lang/Object;
.source "DlnaEngineManager.java"

# interfaces
.implements Landroid/content/ServiceConnection;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/dlna/core/b;-><init>()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/dlna/core/b;


# direct methods
.method constructor <init>(Lcom/estrongs/dlna/core/b;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/dlna/core/b$a;->a:Lcom/estrongs/dlna/core/b;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V
    .locals 2

    const-string v0, "DLNA onServiceConnected"

    .line 1
    invoke-static {v0}, Les/m10;->b(Ljava/lang/String;)V

    .line 2
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/dlna/core/b$a;->a:Lcom/estrongs/dlna/core/b;

    move-object v1, p2

    check-cast v1, Lorg/teleal/cling/android/AndroidUpnpService;

    invoke-static {v0, v1}, Lcom/estrongs/dlna/core/b;->a(Lcom/estrongs/dlna/core/b;Lorg/teleal/cling/android/AndroidUpnpService;)Lorg/teleal/cling/android/AndroidUpnpService;

    .line 3
    iget-object v0, p0, Lcom/estrongs/dlna/core/b$a;->a:Lcom/estrongs/dlna/core/b;

    const/4 v1, 0x2

    invoke-static {v0, v1}, Lcom/estrongs/dlna/core/b;->a(Lcom/estrongs/dlna/core/b;I)I

    .line 4
    iget-object v0, p0, Lcom/estrongs/dlna/core/b$a;->a:Lcom/estrongs/dlna/core/b;

    invoke-static {v0}, Lcom/estrongs/dlna/core/b;->a(Lcom/estrongs/dlna/core/b;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/dlna/core/c;

    .line 5
    invoke-virtual {v1, p1, p2}, Lcom/estrongs/dlna/core/c;->onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V

    goto :goto_0

    .line 6
    :cond_0
    iget-object p1, p0, Lcom/estrongs/dlna/core/b$a;->a:Lcom/estrongs/dlna/core/b;

    invoke-static {p1}, Lcom/estrongs/dlna/core/b;->b(Lcom/estrongs/dlna/core/b;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    .line 7
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :goto_1
    return-void
.end method

.method public onServiceDisconnected(Landroid/content/ComponentName;)V
    .locals 2

    const-string v0, "DLNA onServiceDisconnected"

    .line 1
    invoke-static {v0}, Les/m10;->b(Ljava/lang/String;)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/dlna/core/b$a;->a:Lcom/estrongs/dlna/core/b;

    const/4 v1, -0x1

    invoke-static {v0, v1}, Lcom/estrongs/dlna/core/b;->a(Lcom/estrongs/dlna/core/b;I)I

    .line 3
    iget-object v0, p0, Lcom/estrongs/dlna/core/b$a;->a:Lcom/estrongs/dlna/core/b;

    invoke-static {v0}, Lcom/estrongs/dlna/core/b;->a(Lcom/estrongs/dlna/core/b;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/dlna/core/c;

    .line 4
    invoke-virtual {v1, p1}, Lcom/estrongs/dlna/core/c;->onServiceDisconnected(Landroid/content/ComponentName;)V

    goto :goto_0

    :cond_0
    return-void
.end method
